From a95477951324b218fc8ccf5daec7517e41083f26 Mon Sep 17 00:00:00 2001 From: Michal Babej Date: Mon, 6 Sep 2021 07:28:26 +0300 Subject: [PATCH] [PATCH 14/90] Fix uninitialized variable in tests/regression/test_alignment_with_dynamic_wg2.cpp Gbp-Pq: Name 0014-Fix-uninitialized-variable-in-tests-regression-test_.patch --- tests/regression/test_alignment_with_dynamic_wg2.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/tests/regression/test_alignment_with_dynamic_wg2.cpp b/tests/regression/test_alignment_with_dynamic_wg2.cpp index 0fe5b19..91abd9e 100644 --- a/tests/regression/test_alignment_with_dynamic_wg2.cpp +++ b/tests/regression/test_alignment_with_dynamic_wg2.cpp @@ -57,8 +57,8 @@ int main(int argc, char *argv[]) { cl::Program program(SOURCE); program.build("-cl-std=CL1.2"); - float in1[ARRAY_SIZE]; - float out[ARRAY_SIZE]; + float in1[ARRAY_SIZE] = { 0.0f }; + float out[ARRAY_SIZE] = { 0.0f }; cl::Buffer inbuf((cl_mem_flags)(CL_MEM_READ_ONLY | CL_MEM_COPY_HOST_PTR), (ARRAY_SIZE * sizeof(float)), in1); -- 2.30.2